<template>
    <div class="login-wrap">
        <el-form
                class="login-form"
                label-position="top"
                label-width="80px"
                :model="formdata"
        >
            <h2>用户登录</h2>
            <el-form-item label="用户名">
                <el-input v-model="formdata.username"></el-input>
            </el-form-item>
            <el-form-item label="密码">
                <el-input v-model="formdata.password"></el-input>
            </el-form-item>
            <el-button class="login-btn" type="primary">登录</el-button>
        </el-form>
    </div>
</template>
<script>
  export default {
    name: "login",
    data() {
      return {
        formdata: {
          username: "",
          password: "",
        },
      };
    },
  };
</script>
